package com.mind.core.net.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mind.core.CoreErrors;
import com.mind.core.ErrorsUtil;
import com.mind.core.handler.MessageHandler;
import com.mind.core.net.msg.Message;

public class DumyHandler implements MessageHandler<Message>{
	public DumyHandler(){}
	/** 日志 */
	private static Logger logger = LoggerFactory.getLogger(DumyHandler.class);
  
	@Override
	public void execute(Message message) {
		logger.error(ErrorsUtil.error(CoreErrors.MSG_UNKNOWN, "", "Message[name=" + message.getMessageName() + ",value="
				+ message.getMessageType() + "]"));
	}

	@Override
	public short[] getTypes() {
		return new short[]{};
	}

}